<?php switch($content_type){
case 'ff_mfr': ?>
<!--view friends in list view-->
<?php if(!isset($has_frid)){ ?>
<form id="inbox-list-view" name="inbox-list-view" action="<?php echo $action_link; ?>" method="POST">
<dl id="inbox-header">
    <dd><?php echo $text_manage_friends_intro; ?></dd>
    <dd><?php echo $text_quick_access; ?>:
        Disable system message for all my friends' new posts:<input id="receive-all-posting" type="radio" name="receive-all-posting" /><br />
        Disable system message for all my friends' shared topics<input id="receive-all-sharing" type="radio" name="receive-all-sharing" />
    </dd>
</dl>
<?php if(!empty($inbox_pms)){ ?>
<?php foreach($inbox_pms as $inbox_pm){ ?>
<dl class="inbox-list">
    <dd class="inbox-list-left <?php echo $inbox_pm['message_read_status']; ?>">
        <span><a href="<?php echo $inbox_pm['msg_link']; ?>"><?php echo $inbox_pm['message_subject']; ?></a></span><br />
        <span><?php echo$text_by . '&nbsp;'; ?><a href="#"><?php echo $inbox_pm['username']; ?></a><?php echo $text_separator; echo $inbox_pm['message_time']; ?></span>
    </dd>
    <dd class="inbox-list-right"><input type="checkbox" name="marked_msg_id[]" value="<?php echo$inbox_pm['msg_id'] ; ?>" /></dd>
</dl>
    <?php } ?>
<?php }else{ ?>
<span><strong><?php echo $text_no_messages; ?></strong></span>
<?php } ?>
<?php if($inbox_total>0){ ?>
<dl id="inbox-list-bottom">
    <dd><?php if($inbox_total>1){ ?>
        &bull; <a href="#" onclick="marklist('inbox-list-view', 'marked_msg', true); return false;"><?php echo $text_mark_all; ?></a>
        &bull; <a href="#" onclick="marklist('inbox-list-view', 'marked_msg', false); return false;"><?php echo $text_unmark_all; ?></a>
        <?php } ?>
        <input type="submit" name="delete_pm" value="<?php echo $text_delete; ?>" onclick="{if(confirm('<?php echo $text_confirm_delete; ?>')){this.document.inbox-list-view.submit();return true;}return false;}" />
    </dd>
</dl>
<div class="forum-pagination"><?php echo $pagination; ?></div>
<?php } ?>
</form>
<!--view friend details-->
<?php }else{ ?>
<form name="inbox-detail-view" action="<?php echo $action_link; ?>" method="POST">
<dl id="inbox-header">
    <dd><?php echo $text_inbox_folder_full; ?></dd>
    <dd id="view-message-reply-button"><a href="<?php echo $reply_pm_link; ?>"><span ><?php echo $text_reply; ?></span></a></dd>
    <?php if($is_folder_full){ ?>
    <dd id="pm-folder-full"><?php echo $error_folder_full; ?></dd>
    <?php } ?>
</dl>
<dl class="view-message">
    <dl class="view-message-header">
        <dd class="view-message-subject"><?php echo $private_message['message_subject']; ?></dd>
        <dd><input class="delete-icon" type="submit" name="delete_pm" title="<?php echo $text_delete_pm; ?>" onclick="{if(confirm('<?php echo $text_confirm_delete; ?>')){this.document.inbox-detail-view.submit();return true;}return false;}" /><input class="report-icon" type="submit" name="report_pm" title="<?php echo $text_report_pm; ?>" /></dd>
        <dd class="view-message-subtitle"><span><strong><?php echo $text_from; ?></strong>&nbsp;</span><a href="#"><?php echo $private_message['username']; ?></a>&nbsp;&raquo;&nbsp;<span><strong><?php echo $text_sent; ?></strong>&nbsp;<?php echo $private_message['message_time']; ?></span></dd>
    </dl>
    <dl>
        <dd><?php echo $private_message['message_text']; ?></dd>
    </dl>
</dl>
</form>
<?php } ?>
<?php break; ?>
<?php case 'ff_afr': ?>
<form action="<?php echo $action_link; ?>" method="POST">
<dl>
  <dd class="cp-header"><?php echo $text_add_friends_intro; ?></dd>
  <dd class="cp-content">
      <textarea name="friend-names"></textarea>
      <input class="input-buttons" type="submit" name="submit" value="<?php echo $button_submit; ?>" />
  </dd>
</dl>
</form>
<?php break; ?>
<?php } ?>